using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Drawing;
 
using GameLibrary;
 
namespace ArkanoidGame
{
   public class Brick : StaticElement
   {
       #region  Private Members
       private Color m_outlineColour = BricksSettings.OUTLINE_COLOR;
       private Color m_fillColour = BricksSettings.FILL_COLOR;
       #endregion
 
       #region Public Properties
       public Color OutlineColour
       {
           get { return m_outlineColour; }
           set { m_outlineColour = value; }
       }
 
       public Color FillColour
       {
           get { return m_fillColour; }
           set { m_outlineColour = value; }
       }
       #endregion
 
       #region Constructor(s)
       public Brick(GamePanel owningGame, RectangleF rectangle)
           : base(owningGame, rectangle)
       {
       }
 
       public Brick(GamePanel owningGame, PointF position, SizeF size)
           : this(owningGame, new RectangleF(position, size))
       {
       }
       #endregion
 
       #region IGameElement Implementation
       public override void Draw(TimeSpan elapsedTime, System.Drawing.Graphics g)
       {
           if (g != null)
           {
               g.FillRectangle(new SolidBrush(this.FillColour), this.Position.X, this.Position.Y, this.Size.Width, this.Size.Height);
               g.DrawRectangle(new Pen(this.OutlineColour), this.Position.X, this.Position.Y, this.Size.Width, this.Size.Height);
           }
       }
 
       public override void Update(TimeSpan elapsedTime)
       {
       }
       #endregion
   }
}